package dmo2;

public class Rabbit extends Animal {
    public Rabbit(String name, String colour, String kind) {
        super(name, colour, kind);
    }

    @Override
    public void eat() {
        System.out.println("兔子是"+getKind()+"爱吃胡萝卜");
    }

    @Override
    public void cry() {
        System.out.println("那只"+getColour()+"的，名字叫"+getName()+"兔子正在叽叽的叫");
    }
}
